package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.order.domain.OrderBasic;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 rider_orders
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class RiderOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;


    /** 配送距离(千米) */
    @Excel(name = "配送距离(千米)")
    private BigDecimal deliveryDistanceKm;

    @Excel(name = "骑手关联订单")
    private OrderBasic orderbasic;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 状态：0-待指派 1-已接单 3-配送中 4-已完成 2-待抢单 */
    @Excel(name = "状态：0-待指派 1-已接单 3-配送中 4-已完成 2-待抢单")
    private int status;

    /** 骑手ID */
    private Long riderId;

    /** 预计送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date estimatedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }


    public void setDeliveryDistanceKm(BigDecimal deliveryDistanceKm) 
    {
        this.deliveryDistanceKm = deliveryDistanceKm;
    }

    public BigDecimal getDeliveryDistanceKm() 
    {
        return deliveryDistanceKm;
    }

    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public int getStatus()
    {
        return status;
    }

    public void setRiderId(Long riderId) 
    {
        this.riderId = riderId;
    }

    public Long getRiderId() 
    {
        return riderId;
    }

    public void setEstimatedTime(Date estimatedTime) 
    {
        this.estimatedTime = estimatedTime;
    }

    public Date getEstimatedTime() 
    {
        return estimatedTime;
    }

    public OrderBasic getOrderbasic() {
        return orderbasic;
    }

    public void setOrderbasic(OrderBasic orderbasic) {
        this.orderbasic = orderbasic;
    }

    @Override
    public String toString() {
        return "RiderOrders{" +
                "id=" + id +
                ", orderNo='" + orderNo + '\'' +
                ", deliveryDistanceKm=" + deliveryDistanceKm +
                ", orderbasic=" + orderbasic +
                ", orderTime=" + orderTime +
                ", status=" + status +
                ", riderId=" + riderId +
                ", estimatedTime=" + estimatedTime +
                '}';
    }
}
